package com.humanmonth.home.component.page.report.remote
{
	import com.humanmonth.home.component.page.report.MyData;
	
	
	public class XmlToTree
	{
		private var xml:XML;
		public function XmlToTree(xml:XML)
		{
			this.xml=xml;
		}
		
		private function decodeNode():void{
			for each(var node:XML in xml.nodes.node){
				new MyData(node.id,node.order,node.name);
			}
		}
		
		/**
		 * 初始化 
		 */
		public function myInit():void{
			this.decodeNode();
		}

	}
}